package com.igeek.boot.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.igeek.boot.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;
import com.igeek.boot.vo.PageQueryVO;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author jwj
 * @since 2023-12-26
 */
public interface IUserService extends IService<User> {


    User findUserByUsername(String username);

    String upload(MultipartFile imgFile) throws IOException;

    boolean updateUserInfo(User user);

    Page<User> findUserPage(PageQueryVO pageQueryVO);

    boolean addUserInfo(User user ,Integer userId);

    boolean updateUser(User user, Integer roleId);
}
